<template>
    <div class="collect">
        <!-- 顶部 -->
         <common-header>
            <template #text>
                <p>我的收藏</p>
            </template>
        </common-header>
         <main class="collect-main">
            <entry v-for="item in collects" :key="item.id" :obj="item"></entry>
        </main> 
    </div>
</template>

<script>
import commonHeader from "../components/common-header.vue"
import entry from "../components/entry.vue"
import {mapState} from "vuex"
export default {
    name:"Like",
    components:{
        commonHeader,entry
    },
    computed:{
        ...mapState(["collects"])
    }
}
</script>
<style lang="scss" scoped>
@import "../assets/common/base.scss";
.collect-main{
    width: 100%;
    height: 92%;
    background-color: $bodyCol;
    overflow-y: scroll;
    position: absolute;
    top: 50px;
    left: 0;
}
</style>